package com.aerospace.algorithm;

class SynchronizedTest8 {
    public synchronized void method1() {
        System.out.println(this.toString());
    }
}

public class test extends SynchronizedTest8 {
    @Override
    public synchronized void method1() {
        System.out.println(super.toString());
        System.out.println(this.toString());
        super.method1();
    }

    public static void main(String[] args) {
        test test7 = new test();
        System.out.println(test7.toString());
        test7.method1();
    }
}